package xyz.thoughtset.viewer.common.connector.linker;


import lombok.Getter;
import xyz.thoughtset.viewer.common.connector.entity.bo.ConnectorMeta;
import xyz.thoughtset.viewer.common.connector.entity.bo.Linker;

import java.util.Properties;

public abstract class ConnBuilder {
    @Getter
    protected final Linker dataLinker;

    public ConnBuilder(Linker dataLinker) {
        this.dataLinker = dataLinker;
        LinkerHelper.registerConn(this);
    }

    public abstract Object buildConnect(ConnectorMeta connectorMeta, Properties properties);

    public Object unloadConnect(ConnectorMeta connectorMeta, Properties properties) {
        return null;
    }


}
